package com.example.sls.service.impl.logistics;

import com.example.sls.pojo.logistics.EquipmentMaintenance;
import com.example.sls.dao.logistics.EquipmentMaintenanceDao;
import com.example.sls.service.intserfaces.logistics.EquipmentMaintenanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备维护记录表(EquipmentMaintenance)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:54:53
 */
@Service
public class EquipmentMaintenanceServiceImpl implements EquipmentMaintenanceService {
  @Autowired
  EquipmentMaintenanceDao equipmentMaintenanceDao;

  @Override
  public EquipmentMaintenance queryById(Integer id) {
    return equipmentMaintenanceDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return equipmentMaintenanceDao.deleteById(id);
  }

  @Override
  public int update(EquipmentMaintenance equipmentMaintenance) {
    return equipmentMaintenanceDao.update(equipmentMaintenance);
  }

  @Override
  public int insert(EquipmentMaintenance equipmentMaintenance) {
    return equipmentMaintenanceDao.insert(equipmentMaintenance);
  }

  @Override
  public long count() {
    return equipmentMaintenanceDao.count();
  }

  @Override
  public List<EquipmentMaintenance> queryAllByLimit(EquipmentMaintenance equipmentMaintenance, Integer pageSize, Integer offset) {
    return equipmentMaintenanceDao.queryAllByLimit(equipmentMaintenance, pageSize, offset);
  }
}
